package com.taoyun.pojo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.Table;
import java.io.Serializable;

@Data
@EqualsAndHashCode(callSuper = false)
@Table(name = "`ObjectSize`")
public class ObjectSize implements Serializable {

    @TableId(value = "Obsobject_Name", type = IdType.AUTO)
    private String ObsobjectName;

    @TableId(value = "used_dataSize")
    private Long usedSize;

    @TableId(value = "Max_dataSize")
    private Long dataSize;

    public ObjectSize(String obsobjectName, Long usedSize, Long dataSize) {
        ObsobjectName = obsobjectName;
        this.usedSize = usedSize;
        this.dataSize = dataSize;
    }

    public String getObsobjectName() {
        return ObsobjectName;
    }

    public void setObsobjectName(String obsobjectName) {
        ObsobjectName = obsobjectName;
    }

    public Long getUsedSize() {
        return usedSize;
    }

    public void setUsedSize(Long usedSize) {
        this.usedSize = usedSize;
    }

    public Long getDataSize() {
        return dataSize;
    }

    public void setDataSize(Long dataSize) {
        this.dataSize = dataSize;
    }
}
